package com.hu.diy;


import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class Annotation {
    @Before("execution(* com.hu.service.UserServiceImpl.*(..))")
    public void before(){
        System.out.println("============方法开始前");
    }
    
    @After("execution(* com.hu.service.UserServiceImpl.*(..))")
    public void after(){
        System.out.println("============方法开始后");
    }
}
